package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.UserAuthData;
import com.rf.richfitwheel.admin.sys.model.UserAuthDataExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UserAuthDataMapper {
    long countByExample(UserAuthDataExample example);

    int deleteByExample(UserAuthDataExample example);

    int deleteByPrimaryKey(String id);

    int insert(UserAuthData record);

    int insertSelective(UserAuthData record);

    List<UserAuthData> selectByExample(UserAuthDataExample example);

    UserAuthData selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") UserAuthData record, @Param("example") UserAuthDataExample example);

    int updateByExample(@Param("record") UserAuthData record, @Param("example") UserAuthDataExample example);

    int updateByPrimaryKeySelective(UserAuthData record);

    int updateByPrimaryKey(UserAuthData record);
    
    /**
     * 只删除对应模块的记录
     * @param params {userId:"", moduleType: [String,String...]}
     */
    void deleteByUserIdAndModuleType(Map<String, Object> params);
}